//
//  Constants.swift
//  SDKDebuggingDemo
//
//  Created by 秦晟哲 on 2019/8/14.
//  Copyright © 2019 QinszQSZ. All rights reserved.
//

import Foundation

let TestAPPKey = "19058s8g5"
let TestSecretKey = "8kj"

enum KCTBLEFunctionName:String {
    case SetAltitude = "设置海拔\n(0x02 0x3B)"
    case SetBPCalibrationStart = "设置血压校准开始\n(0x02 0x42)"
    case SetStepDistance    = "设置步距\n(0x02 0x44)"
    case SetUnitsSystem     = "设置单位\n(0x02 0x01)"
    case SetUserInfo        = "设置用户信息\n(0x02 0x23)"
    case SetSysInfo         = "系统设置\n(0x02 0x27)"
    case FindDevice         = "查找设备\n(0x05 0x50)"
    case SetTime            = "设置时间\n(0x02 0x20)"
    case SetAlarm           = "设置闹钟\n(0x02 0x21)"
    case SetSportGoal       = "设置运动目标\n(0x02 0x22)"
    case SetSedentary       = "设置久坐提醒\n(0x02 0x25)"
    case SetDrinkRemind     = "设置喝水提醒\n(0x02 0x28)"
    case SetPush            = "设置消息推送\n(0x02 0x29)"
    case SetExtendedPush    = "设置扩展的消息推送\n(0x02 0x34)"
    case ReqExtendedPush    = "获取扩展的消息推送\n(0x02 0x35)"
    case SendTextMessage    = "发送文本消息\n(0x02 0x37)"
    case BPCalibrate        = "设置血压校准\n(0x02 0x32)"
    case SetMenstrualCycle  = "设置生理周期\n(0x02 0x3B)"
    case SetWeather         = "设置天气\n(0x03 0x30)"
    case SetAdvanceWeather  = "设置天气(带地址)\n(0x03 0x37)"
    case SetCameraOnOff     = "设置相机开启状态\n(0x04 0x46)"
    case InputAssitStart    = "协助输入开始\n(0x04 0x4D)"
    case InputAsistSendMsg  = "协助输入发送数据\n(0x04 0x16)"
    case SetGestureSceenOn  = "设置手势亮屏\n(0x04 0x4A)"
    case ReqBindAuth        = "请求绑定授权\n(0x04 0x55)"
    case ReadFirmwareInfos  = "获取固件信息\n(0x01 0x12)"
    case ReadBasicFirmwareInfos = "获取基础固件信息\n(0x01 0x14)"
    case ReqProfileInfo     = "获取配置信息\n(0x02 0x2D)"
    case ReqSettingInfo     = "获取设置信息\n(0x02 0x2E)"
    case ReqPowerInfo       = "获取电量\n(0x04 0x40)"
    case SetDoNotDisturb    = "设置勿扰\n(0x06 0x64)"
    case SetRemindMode      = "设置提醒模式\n(0x06 0x65)"
    case SetHRCheckConfig   = "设置心率监测\n(0x09 0x92)"
    case SetWeatherIndex    = "设置天气指数\n (0x0E 0xE1)"
    case ReqGPSRecord       = "获取GPS记录"
    case SyncHisSleep       = "同步历史睡眠\n(0x0A 0xA0 type=1)"
    case SyncHisHeartRate   = "同步历史心率\n(0x0A 0xA0 type=2)"
    case SyncHisStep        = "同步历史记步\n(0x0A 0xA0 type=3)"
    case SyncHisSport       = "同步历史运动\n(0x0A 0xA0 type=4)"
    case SyncHisBP          = "同步历史血压\n(0x0A 0xA0 type=5)"
    case SyncHisBO          = "同步历史血氧\n(0x0A 0xA0 type=7)"
    case SyncHisPressure    = "同步历史压力\n(0x0A 0xA0 type=8)"
    case SyncRealTimeSport  = "同步实时运动\n(0x0A 0xA6 type=3)"
    case SyncRealTimeSportMode = "同步实时运动模式\n(0x0A 0xA6 type=4)"
    case SyncHisAnalogicECG = "同步历史模拟心电\n(0x11 0x09)"
    case SyncHisTemp        = "同步历史体温\n(0x12 0x01)"
    case ReqSmartSport      = "获取Smart历史运动\n(0x70 0x70)"
    case SendUrgentNum      = "发送紧急号码\n(0x04 0x15)"
    case SyncContacts       = "同步联系人\n(0x04 0x4B)"
    case SmartDialSelect    = "Smart表盘选择\n(0x04 0x4E)"
    case SmartDialList      = "获取Smart表盘\n(0x04 0x4F)"
    case SendQRString       = "发送二维码字符串\n(0x0E 0xE0)"
//    case SyncHisBP          = "同步历史血压"
//    case SyncHisBO          = "同步历史血氧"
//    case SyncHisECG         = "同步历史心电"
    case DialogUpgreade     = "Dialog升级"
    case NordicUpgrade      = "Nordic升级"
    case BKUpgrade          = "BK升级"
    case DialPush           = "表盘推送"
    case MedicineRemind     = "吃药提醒"
    case ESIM               = "ESIM"
    case PointerCorrect     = "指针校准"
    case Reboot             = "重启\n(0x0C 0xC7)"
    case Reset              = "重置\n(0x0C 0xCC)"
    case AutoTest           = "自动测试"
//    case NetWorkTest        = "网络接口测试"
    
    case ReqBind            = "请求绑定\n(0x04 0x44)"
    case ReqUnbind          = "请求解绑\n(0x04 0x42)"
}




/// BLE设备连接成功的通知
let Notification_ConnectBLEDevice = NSNotification.Name(rawValue: "ConnectBLEDevice")

/// BLE设备断开连接时的通知
let Notification_DisconnectBLEDevice = NSNotification.Name(rawValue: "DisconnectBLEDevice")

/// 搜索到蓝牙外设的通知
let Notification_DiscoveredPeripheral = NSNotification.Name(rawValue: "Notification_DiscoveredPeripheral")
